import {IsNotEmpty, IsString, IsNumber} from 'class-validator'

export class CreateHomeDto {
    @IsNotEmpty() // 验证是否为空
    @IsString() // 是否为字符串
    name:string;
 
    @IsNotEmpty()
    @IsNumber()
    age:number
}
